package com.carcenter.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author car
 * @since 2025-07-16
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
  @TableName("appointment_detail")
@ApiModel(value = "AppointmentDetail对象", description = "")
public class AppointmentDetail implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;


    private Integer appointmentId;
    private String itemType;

    private Integer itemId;


    @TableField(exist = false,update="false")
    private ProductDto productDto;

    @TableField(exist = false,update="false")
    private ServiceDto serviceDto;

    private Integer quantity;

    private BigDecimal totalPrice;

}
